/*
 * @Author: wangke
 * @Date: 2025-04-20 22:07:43
 * @LastEditors: wangke
 * @LastEditTime: 2025-05-06 23:48:47
 * 
 */
#ifndef APP_I2S_H
#define APP_I2S_H
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "driver/i2s.h"
#include "esp_system.h"
#define SAMPLE_RATE (44100)
#define PIN_I2S_BCLK 16
#define PIN_I2S_LRC 17
#define PIN_I2S_DOUT 18
#define PIN_I2S_DIN 15

// 44100Hz, 16bit, stereo
void I2S_Init();
void I2S_RecoderInit();
int I2S_Read(char* data, int numData);
void I2S_Write(char* data, int numData);
#endif
